/**由于引擎BUG，TS端不调用setResizeCallback函数，所以才存在这个类 */
cc.Class({
    extends: cc.Component,

    properties: {

        onResizeEvent: {
            default: null,
            type: cc.Component.EventHandler,
            serializable: true,
        },
 
    },

    start () {

        var self = this;

        cc.view.setResizeCallback(function(){

            self.onResizeEvent.emit();
        });
    },
});
